package com.gjp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gjp.bean.Resource;
import com.gjp.bean.User;
import com.gjp.mapper.UserMapper;

@Service
@Transactional
public class UserServiceImpl implements UserService
{
	@Autowired
	UserMapper userMapper;
	public User selectUserByName(User user)
	{
		return userMapper.selectUserByName(user);
	}
	@Override
	public List<Resource> getResourcesByUserName(String userName) {
		return userMapper.getResourcesByUserName(userName);
	}
}
